<!--# layout("/common/layout.html",{"jsBase":"/js/admin/orders/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">产品id</label>
                <div class="layui-input-inline">
                    <input type="text" id="productId" name="productId" value="${orders.productId}" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">客户id</label>
                <div class="layui-input-inline">
                    <input type="text" id="customerId" name="customerId" value="${orders.customerId}"
                           class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">销售id</label>
                <div class="layui-input-inline">
                    <input type="text" id="sellerId" name="sellerId" value="${orders.sellerId}" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">成交价</label>
                <div class="layui-input-inline">
                    <input type="text" id="dealPrice" name="dealPrice" value="${orders.dealPrice}" class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">数量</label>
                <div class="layui-input-inline">
                    <input type="text" id="count" name="count" value="${orders.count}" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">付款状态</label>
                <div class="layui-input-inline">
                    <input type="text" id="payment" name="payment" value="${orders.payment}" class="layui-input">
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">updatedAt</label>
                <div class="layui-input-inline">
                    <input type="text" id="updatedAt" name="updatedAt" value="${orders.updatedAt," yyyy-MM-dd"}"
                    class="layui-input input-date" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">createdAt</label>
                <div class="layui-input-inline">
                    <input type="text" id="createdAt" name="createdAt" value="${orders.createdAt," yyyy-MM-dd"}"
                    class="layui-input input-date" >
                </div>
            </div>
        </div>
    </div>
    <!-- 业务对象须有hidden字段，保存delFlag和version字段-->
    <input type="hidden" name="delFlag" value=${orders.delFlag}/>
    <input type="hidden" name="id" value=${orders.id}/>
    <layui:submitButtons id="updateButton"/>
</form>
<!--#} -->
<script>
    layui.use(['edit'], function () {
        var ordersEdit = layui.edit
        ordersEdit.init();
    });
</script>
